// asyncPackageComponent/cloud_shop_plugin/cloud_shop_member/cloud_shop_member.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    otherInfo: {
      type: null,
      value: ""
    },
    guide_show_status:{
      type:null
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    time: 30 * 60 * 60 * 1000,
    timeData: {},
    schedule: 50,
    taskInd: 0,
    nowTime: parseInt(new Date().getTime() / 1000),
    c_time: Date.now(),
    first_order_check_time:""
  },
  lifetimes:{
    attached(){
      console.log(this.data.otherInfo.first_order_check_time)
      this.setData({
        first_order_check_time:this.data.otherInfo.first_order_check_time
      })
    }
  },
  /**
   * 组件的方法列表
   */
  methods: {
    sharePoster(){
      this.triggerEvent('openQrCode')
    },
    toOpenOrder() {
      wx.navigateTo({
        url: '/mircoApp/cloud_shop/billing_Zone/billing_Zone',
      })
    },
    onChange(e) {
      this.setData({
        timeData: e.detail,
      });
    },
    todiyBg(){
      wx.navigateTo({
        url: '/mircoApp/cloud_shop/cloud_shop_diyPage/cloud_shop_diyPage',
      })
    },
    to_internship_Guide(){
      wx.navigateTo({
        url: '/mircoApp/cloud_shop/internship_Guide/internship_Guide',
      })
    },
    async guideFinish(){
      let {
        data
      } = await app._postNetWork({
        url: app.getNetAddresss("plugin.cloud-shop.frontend.guide.guideFinish")
      })
      if(data.result){
        app.tips(data.msg);
        this.triggerEvent('update_guide_status')
      }else{
        app.tips(data.msg);
      }
    }
  }
})